package com.jian.myutils;

import java.io.File;
import java.nio.charset.Charset;
import java.nio.charset.CharsetEncoder;

import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.mime.MultipartEntity;
import org.apache.http.entity.mime.content.FileBody;
import org.apache.http.entity.mime.content.StringBody;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.util.EntityUtils;

import com.jian.myutils.LocationHandler.LocationResultListener;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Environment;
import android.view.View;
import android.widget.ImageView;
import android.widget.Toast;

public class MainActivity extends Activity  {
    String path ;
    private ImageView image;
    private Bitmap bit;
//03-28 15:29:17.210: I/System.out(29145): 上传缩略图参数--vid-﻿36A26E3D-4AA4-7F18-433A-754459DD0A10-pingtai---simi--localpath-/storage/sdcard0/17rd/temp/﻿36A26E3D-4AA4-7F18-433A-754459DD0A10-sl1.jpg

    @Override
    protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_main);



    }

    public void setbit(View v) {

	LocationHandler lh=new LocationHandler(MainActivity.this);
	lh.setResultListener(new a());
	lh.updateLocation();
	
	
    }
    class a implements LocationResultListener{

	@Override
	public void onGetLocation(double dLongitude, double dLatitude) {
	    // TODO Auto-generated method stub
	    
	}

	@Override
	public void onGetLocationAddress(String strAddress) {
	    // TODO Auto-generated method stub
	 Toast.makeText(MainActivity.this, strAddress, 1000).show();
	    
	}
	
    }
    

   

}
